package asia.hymsk.spring.pojo.mongodb;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Document("AverageProducts")
public class AverageProducts {

    @Id
    private String id;
    @Field
    private Integer productId;//商品ID
    @Field
    private Double avg;//商品的平均评分数
}
